package marmalius.object.door;

import marmalius.map.SpawnObject;
import marmalius.map.SpawnType;

public class Door extends SpawnObject {
	private int doorID1;
	private byte doorFace1;
	private int doorID2;
	private byte doorFace2;
	private int coordX2;
	private int coordY2;
	private boolean isFirstPosition;
	
	public Door(int doorID1, int doorX1, int doorY1, byte heightLevel, byte doorFace1, int doorID2, int doorX2, int doorY2, byte doorFace2) {
		this.doorID1 = doorID1;
		coordX = doorX1;
		coordY = doorY1;
		this.heightLevel = heightLevel;
		this.doorFace1 = doorFace1;
		this.doorID2 = doorID2;
		coordX2 = doorX2;
		coordY2 = doorY2;
		this.doorFace2 = doorFace2;
		
		isFirstPosition = true;
		type = SpawnType.DOOR;
	}

	public int getDoorID1() { return doorID1; }
	public byte getDoorFace1() { return doorFace1; }
	public int getDoorID2() { return doorID2; }
	public byte getDoorFace2() { return doorFace2; }
	public int getCoordX2() { return coordX2; }
	public int getCoordY2() { return coordY2; }
	public boolean isFirstPosition() { return isFirstPosition; }
	public void changePosition() {
		isFirstPosition = !isFirstPosition;
	}
}
